package com.cnbot.dchttpsdk.helper;

/**
 * Copyright (c) 2016-a  Hunan Cnbot Co., Ltd. All Rights Reserved.
 *
 * @descriptoin 请求成功
 * @FileName: OnSubscriberListener.java
 * @author: dc
 * @date: 2019/1/19 14:06
 * @version: 1.0
 */

public interface OnSubscriberListener<T> {


    /**
     * 请求成功
     * @param t
     */
    void onNext(T t);


    /**
     * 请求出错
     * @param e
     */
    void onError(Throwable e);

}
